package com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training;

import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training.dto.BusinessEmployeeTrainingListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training.param.BusinessEmployeeTrainingCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training.param.BusinessEmployeeTrainingDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training.param.BusinessEmployeeTrainingListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.training.param.BusinessEmployeeTrainingUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessEmployeeTrainingCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/employee/training/fallback")
public class BusinessEmployeeTrainingCloudServiceFallback implements BusinessEmployeeTrainingCloudService {

    @Override
    public BusinessEmployeeTrainingListCloudDto list(BusinessEmployeeTrainingListCloudParam param) {
        return new BusinessEmployeeTrainingListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessEmployeeTrainingCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessEmployeeTrainingUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessEmployeeTrainingDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
